package be.jaisy.project.service.api.to;

import java.io.Serializable;

public class ProjectTo implements Serializable {

	private static final long serialVersionUID = -772518765362592450L;

	private String name;

	private String description;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer(ProjectTo.class+" :");
		sb.append("[name="+name+"]");
		sb.append("[description="+description+"]");
		return sb.toString();
	}

	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((description == null) ? 0 : description.hashCode());
		result = PRIME * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
//comment for GWT
//		if (getClass() != obj.getClass())
//			return false;
		final ProjectTo other = (ProjectTo) obj;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	
	
	
}
